<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./default_template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="content">
        <h:form>
            <h:panelGrid columns="2">
                <h:outputLabel value="Compte  :" for="compte" />  
                <h:selectOneMenu id="compte" value="#{operationMBean.compte}" title="Compte à débiter" converter="#{compteMBean.compteConverter}">
                <f:selectItems value="#{compteMBean.selectCompteBancaires}"/>
               
            </h:selectOneMenu>  
                
                
            <h:outputLabel value="Libellé  :" for="libelle" />  
                <h:inputText id="libelle" value="#{operationMBean.libelle}" />
                <h:outputLabel value="Montant  :" for="solde" />  
            <h:inputText id="solde" value="#{operationMBean.solde}"   />
            <p:slider for="solde" minValue="-10000" step="10"  maxValue="10000"/>
            <h:commandButton id="back" value="Back" action="./index.xhtml"/>  
            <h:commandButton id="operation" value="Operation" action="#{operationMBean.operation()}"/>
            </h:panelGrid>
        </h:form>
    </ui:define>

</ui:composition>
